<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
<head>
<title> Modify Info Page</title>
</head>
<body>
<h:form>
    <h:outputLabel value="Modify #{userBean.accountInfo.firstname} Login Info " />
<br></br>
<br></br>
   <h:panelGrid columns="3">
      <h:outputText value="GPA :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.GPA} "></h:outputText>
      <h:inputText id="GPA" value="#{modifyEducation.entered_GPA}"
                   validatorMessage="Entered GPA is Invalid (Range is 0.0 to 6.0)">
         <f:validateDoubleRange minimum="0.0" maximum="6.0" /></h:inputText>


      <h:outputText value="SAT Math Score :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.mathSAT} "></h:outputText>
      <h:inputText id="mathsat" value="#{modifyEducation.entered_mathSAT}"
                   validatorMessage="Entered SAT Match Score is Invalid (Range is 0 to 800)">
         <f:validateLongRange minimum="0" maximum="800" /></h:inputText>

      <h:outputText value="SAT Critical Reading Score :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.creadSAT} "></h:outputText>
      <h:inputText id="creadsat" value="#{modifyEducation.entered_creadSAT}"
                   validatorMessage="Entered SAT Critical Reading Score is Invalid (Range is 0 to 800)">
         <f:validateLongRange minimum="0" maximum="800" /></h:inputText>

      <h:outputText value="SAT Writing Score :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.writeSAT} "></h:outputText>
      <h:inputText id="writesat" value="#{modifyEducation.entered_writeSAT}"
                   validatorMessage="Entered SAT Writing Score is Invalid (Range is 0 to 800)">
         <f:validateLongRange minimum="0" maximum="800" /></h:inputText>


      <h:outputText value="ACT Math Score :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.mathACT} "></h:outputText>
      <h:inputText id="mathact" value="#{modifyEducation.entered_mathACT}"
                   validatorMessage="Entered ACT Math Score is Invalid (Range is 0 to 36)">
         <f:validateLongRange minimum="0" maximum="36" /></h:inputText>

      <h:outputText value="ACT Read Score :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.readACT} "></h:outputText>
      <h:inputText id="readact" value="#{modifyEducation.entered_readACT}"
                   validatorMessage="Entered ACT Read Score is Invalid (Range is 0 to 36)">
         <f:validateLongRange minimum="0" maximum="36" /></h:inputText>

      <h:outputText value="ACT English Score :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.englishACT} "></h:outputText>
      <h:inputText id="englishact" value="#{modifyEducation.entered_englishACT}"
                   validatorMessage="Entered ACT English Score is Invalid (Range is 0 to 36)">
         <f:validateLongRange minimum="0" maximum="36" /></h:inputText>

      <h:outputText value="ACT Science Score :"></h:outputText>
      <h:outputText value=" #{userBean.educationInfo.scienceACT} "></h:outputText>
      <h:inputText id="scienceact" value="#{modifyEducation.entered_scienceACT}"
                   validatorMessage="Entered ACT Science Score is Invalid (Range is 0 to 36)">
         <f:validateLongRange minimum="0" maximum="36" /></h:inputText>


<br></br>
      <h:commandButton value="  Enter  " 
                   action="#{modifyEducation.saveEducationInfo}"/>
    </h:panelGrid>
    </h:form>
    <h:form>
    <h:commandButton value="Return to Main" 
                     action="#{commonBean.returnToMain}"/>
    </h:form>
</body>
</html>